class UploadModel {
  int errno;
  Data data;
  String errmsg;

  UploadModel({this.errno, this.data, this.errmsg});

  UploadModel.fromJson(Map<String, dynamic> json) {
    errno = json['errno'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    errmsg = json['errmsg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errno'] = this.errno;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['errmsg'] = this.errmsg;
    return data;
  }
}

class Data {
  int id;
  String key;
  String name;
  String type;
  int size;
  String url;
  String addTime;
  String updateTime;

  Data(
      {this.id,
      this.key,
      this.name,
      this.type,
      this.size,
      this.url,
      this.addTime,
      this.updateTime});

  Data.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    key = json['key'];
    name = json['name'];
    type = json['type'];
    size = json['size'];
    url = json['url'];
    addTime = json['addTime'];
    updateTime = json['updateTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['key'] = this.key;
    data['name'] = this.name;
    data['type'] = this.type;
    data['size'] = this.size;
    data['url'] = this.url;
    data['addTime'] = this.addTime;
    data['updateTime'] = this.updateTime;
    return data;
  }
}